import router from "@/router";
import { createCancelHttpGuard } from "./cancelHttp"; // http请求取消导航

import { createPermissionGuard } from "./permissionGuard"; // 权限导航

export async function setupRouterGuard() {
  await createCancelHttpGuard(router);
  await createPermissionGuard(router);
}
